package com.hd.vue2204.fm.service.impl;

import com.hd.vue2204.fm.entity.Product;
import com.hd.vue2204.fm.mapper.ProductMapper;
import com.hd.vue2204.fm.service.ProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品 商品信息相关表：分类表，商品图片表，商品规格表，商品参数表 服务实现类
 * </p>
 *
 * @author hd
 * @since 2023-04-19
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {
    @Autowired
    ProductMapper productMapper;
    @Override
    public List<Product> topThree() {
        return productMapper.topThree();
    }
}
